﻿<%@ Page Title="" Language="C#" MasterPageFile="~/News/GongGao.master" AutoEventWireup="true" CodeBehind="AdminGongGao.aspx.cs" Inherits="Web.News.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    
    <div style="padding:20px">
    <asp:GridView ID="GridView_News" runat="server" AutoGenerateColumns="False" 
            AllowPaging="True" onpageindexchanging="GridView_News_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="news_title" HeaderText="公告标题" />
            <asp:BoundField DataField="news_date" DataFormatString="{0:d}" 
                HeaderText="时间" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton1" runat="server" 
                        CommandArgument='<%# Eval("news_id") %>' ImageUrl="~/img/Control/Detail.gif" 
                        onclick="ImageButton1_Click" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle HorizontalAlign="Center" />
    </asp:GridView>
        <asp:Label ID="Label_noData" runat="server" Text="" CssClass="ContentLabel" Width="250px"></asp:Label>
        <br/>
        <asp:ImageButton ID="ImageButton_Edit" runat="server" 
            ImageUrl="~/img/Control/Edit.gif" onclick="ImageButton_Edit_Click"/>
    </div>
</asp:Content>
